package yanc.app

class Version {
    /*
    版本名
     */
    String name

    /*
    版本号1.0.0
     */
    String versionId
    /*
    下载地址
     */
    String url
    /*
    提示信息
     */
    String issue
    /*
    文件名
     */

    String fileName


    static mapping = {
        table "sys_version"
        version false
        name(column: "name", sqlType: "varchar(128)")
        versionId(column: "version_id", sqlType: "varchar(32)")
        url(column: "url", sqlType: "varchar(256)")
        issue(column: "issue", sqlType: "varchar(256)")
        fileName(column: "fileName", sqlType: "varchar(256)")
    }

    static constraints = {
        name(nullable: false, unique: false)
        versionId(nullable: false, unique: true)
        url(nullable: false, unique: false)
        issue(nullable: false, unique: false)
        fileName(nullable: false, unique: false)
    }
}
